package com.qidianit.mes.sys.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Supplier;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/16 - 19:57
 */
@Transactional
public interface SupplierService {
    PageInfo<Supplier> selectSuppliersByConditionsWithPaging(String code, String name, Integer status, Integer pageNum, Integer size);

    Supplier selectSupplierByCode(@Param("code") String code);

    int addSupplier(Supplier supplier);

    int updateSupplierById(Supplier supplier);

    int deleteSupplierById(@Param("id") Integer id);

    int deleteSupplierByIds(@Param("id")List<Integer> ids);
}
